import random
import string


def generate_random_string(length: int):
    """
    生成指定长度的随机字符串
    """
    letters = string.ascii_letters
    result_str = "".join(random.choice(letters) for i in range(length))
    return result_str
